<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    .top {
      background-color: gray;
      height: 50px;
    }
    .banner {
      background-color: gray;
      width: 980px;
      height: 150px;
      margin: 0 auto;
      margin-top: 10px;
    }
    .context {
      background-color: pink;
      width: 982px;
      height: 300px;
      margin: 0 auto;
      margin-top: 10px;
    }

    .context li {
      float: left;
      background-color: gray;
      list-style: none;
      width: 238px;
      height: 300px;
      margin-right: 10px;
    }

    .context .last {
      margin-right: 0;
    }
    .footer {
      background-color: gray;
      height: 200px;
      margin-top: 10px;
    }
  </style>
</head>
<body>
  <div class="top">top</div>
  <div class="banner">banner</div>
  <div class="context">
    <ul>
      <li>1</li>
      <li>2</li>
      <li>3</li>
      <li class="last">4</li>
    </ul>
  </div>
  <div class="footer">footer</div>
</body>
</html>